package org.brisling.satisfaction.service.base;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.brisling.base.domain.inf.BaseFlowDomainInf;
import org.brisling.base.service.BaseFlowService;
import org.brisling.common.ConstSysParam;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 
 * 默认服务基类，调用spring默认 <code>EntityManager</code>数据访问的业务类可继承该方法
 * @author : jackson wang
 * @Date   : 2015年6月8日 下午9:47:33
 * @version: 1.0
 * @param <T> 泛型需定义的业务类实体
 */
public class BaseSatisfactionFlowService<T extends 
BaseFlowDomainInf> extends BaseFlowService<T>{	
	
	@PersistenceContext(unitName=ConstSysParam.SUBSYSTEM_SYSMAN)
	@Autowired
	protected void setEntityManager(EntityManager entityManager){
		this.entityManager = entityManager;
		this.subSystem = ConstSysParam.SUBSYSTEM_STATISFACTION;
	}
	
}
